<div class="popup" style="background-color:red; width:240px;">
	<div class="header">
		<i class="icon_w icon_friend"></i>
		删除好友
		<i class="icon_w icon_close" style="float:right; cursor:pointer;" onclick="UM_LAYER.close();"></i>
	</div>
	<div id="form_del_friend" class="content">
		<div style="margin:20px; color:red; text-align:center;">
			您确定要删除这个好友吗？
		</div>
		<div style="text-align:right;">
			<button class="submit" onclick="del_friend();">确定</button>
			<button class="cancel" onclick="UM_LAYER.close();">取消</button>
		</div>

	</div>
</div>
<script language="javascript" type="text/javascript">
function del_friend () {
	loadMod('friend/action_del/0', {'id' : '<{$id}>'}, '', function (msg) {
		if (msg == 'true') {
			UM_LAYER.close();
			location.reload();
		} else {
			$('#form_del_friend').html('<div style="padding:20px 50px; color:red;">操作失败</div>');
		}
	});
}
</script>